package com.yztstudy.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yztstudy.entity.Order;
import com.yztstudy.param.CartListParam;
import com.yztstudy.param.OrderParam;
import com.yztstudy.param.PageParam;
import com.yztstudy.utils.R;

/**
 * 订单的业务逻辑层接口
 */

public interface OrderService extends IService<Order> {

    R save(OrderParam orderParam); // 保存订单

    R list(CartListParam cartListParam); // 分组查询购物车,展示订单

    R check(Integer productId); // 检查订单里面是否有要删除的商品

    R adminList(PageParam pageParam); // 分页查询订单
}
